//
//  ApiUrl.m
//  OCBase
//
//  Created by 侯伟 on 2018/5/2.
//  Copyright © 2018年 侯伟. All rights reserved.
//

#import "ApiUrl.h"
#import "AppConfig.h"
#import "UrlConfig.h"
#import "UserDefaults.h"
#import "PlistHandler.h"

@implementation ApiUrl


+ (Environment)ENV{
    UserDefaults *setting = [UserDefaults new];
    NSInteger environment = [setting integerForKey:@"ApiUrl_Environment"];
    return environment;
}

+ (void)setENV:(Environment)ENV{
    UserDefaults *setting = [[UserDefaults alloc] init];
    [setting setObject:@(ENV) forKey:@"ApiUrl_Environment"];
}

+ (NSString *)URL{

//    return API_URL_DEV;
    return API_URL_PRO;
    
}

+ (NSString *)PATH{
//    return API_PATH_DEV;
    return API_PATH_PRO;
}
@end
